<template>
  <div class="about-container">
    <!-- 导航栏 -->
    <van-nav-bar
      title="关于鲨鱼记账"
      left-arrow
      @click-left="goBack"
      :style="{ backgroundColor: '#FFD847' }"
    />

    <!-- 主体内容 -->
    <div class="content-wrapper">
      <!-- Logo 区域 -->
      <div class="logo-section">
        <div class="phone-mockup">
          <div class="phone-screen">
            <div class="app-logo">
              <div class="logo-icon">¥</div>
            </div>
            <div class="app-name">鲨鱼记账</div>
          </div>
        </div>
        <div class="slogan">财务自由从鲨鱼记账开始</div>
      </div>

      <!-- 文字说明区域 -->
      <div class="info-section">
        <div class="info-text">
          鲨鱼记账致力于为用户提供简单、高效的个人财务管理服务。我们严格遵守相关隐私政策和法律法规，保护用户的个人信息安全。
          用户在使用过程中享有隐私政策授权的撤回权利。我们会明确告知已收集的个人信息以及与第三方共享的信息清单。
          如有任何问题或建议，欢迎随时联系我们的客服团队，我们将竭诚为您服务。
        </div>
      </div>

      <!-- 备案信息 -->
      <div class="footer-info">
        <div class="icp-info">江西思诚科技 sc20250604号-13A</div>
        <div class="version-info">v1.0.1</div>
      </div>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

// 返回上一页
const goBack = () => {
  router.back()
}
</script>

<style lang='scss' scoped>
.about-container {
  min-height: 100vh;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;

  // 返回箭头样式
  :deep(.van-nav-bar__arrow) {
    color: #333;
    font-size: 18px;
    font-weight: 600;
  }

  .content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  // Logo 区域
  .logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    background-color: #fff;
    .phone-mockup {
      width: 280px;
      height: 320px;
      background: linear-gradient(20deg, #f5f5f5 0%, #e8e8e8 100%);
      border-radius: 30px;
      padding: 15px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
      position: relative;
      margin-bottom: 30px;

      // 手机顶部装饰
      &::before {
        content: '';
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background-color: #ddd;
        border-radius: 2px;
      }

      // 手机屏幕右侧按钮
      &::after {
        content: '';
        position: absolute;
        right: -2px;
        top: 80px;
        width: 3px;
        height: 50px;
        background-color: #ccc;
        border-radius: 0 2px 2px 0;
      }

      

      .phone-screen {
        width: 100%;
        height: 100%;
        background-color: #fff;
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;

        .app-logo {
          margin-bottom: 20px;

          .logo-icon {
            width: 100px;
            height: 100px;
            background: linear-gradient(135deg, #FFD847 0%, #FFC107 100%);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 48px;
            font-weight: bold;
            color: #333;
            box-shadow: 0 4px 12px rgba(255, 216, 71, 0.4);
          }
        }

        .app-name {
          font-size: 20px;
          font-weight: 500;
          color: #333;
        }
      }
    }

    .slogan {
      font-size: 16px;
      color: #666;
      text-align: center;
      line-height: 1.6;
    }
  }

  // 文字说明区域
  .info-section {
    background-color: #fff;
    padding: 1px 40px;
    

    .info-text {
      font-size: 14px;
      color: #666;
      line-height: 2;
      text-align: justify;
      text-indent: 2em;
    }
  }

  // 底部信息
  .footer-info {
    background-color: #fff;
    text-align: center;
    padding: 20px;
    .icp-info {
      font-size: 12px;
      color: #999;
      margin-bottom: 8px;
    }

    .version-info {
      font-size: 12px;
      color: #ccc;
    }
  }
}
</style>